<?php

namespace haibao\weixin\model\data;

class WeixinSummary extends \haibao\weixin\model\data\Base{
	const TYPE_DAY = 1;
	const TYPE_WEEK = 2;
	
	public $WeixinInfoId;
	public $ReadUserCount = 0;
	public $ReadCount = 0;
	public $ReadOriUserCount = 0;
	public $ReadOriCount = 0;
    public $ShareUserCount = 0;
    public $ShareCount = 0;
    public $FavUserCount = 0;
    public $FavCount = 0;
    public $NewUserCount = 0;
    public $CancelUserCount = 0;
    public $UserCount = 0;
   	public $SessionReadUserCount = 0;
   	public $SessionReadCount = 0;
   	public $ActiveUserCount = 0;
   	public $Type = 0;
   	public $CreateTime = 0;
   	public $ShareReadCount = 0;
   	public $SearchCount = 0;
   	public $SearchUserCount = 0;
   	public $ClickReadCount = 0;
   	public $RegUserCount = 0;
   	public $TryUserCount = 0;
   	public $TryCount = 0;
	
    public function __construct() {
        parent::__construct();
        
        $this->intField('WeixinInfoId', 'WeixinInfoId',true);
        $this->intField('ReadUserCount', 'ReadUserCount');
        $this->intField('ReadCount', 'ReadCount');
        $this->intField('ReadOriUserCount', 'ReadOriUserCount');
        $this->intField('ReadOriCount', 'ReadOriCount');
        $this->intField('ShareUserCount', 'ShareUserCount');
        $this->intField('ShareCount', 'ShareCount');
        $this->intField('FavUserCount', 'FavUserCount');
        $this->intField('FavCount', 'FavCount');
        $this->intField('NewUserCount', 'NewUserCount');
        $this->intField('CancelUserCount', 'CancelUserCount');
        $this->intField('UserCount', 'UserCount');
        $this->intField('SessionReadUserCount', 'SessionReadUserCount');
        $this->intField('SessionReadCount', 'SessionReadCount');
        $this->intField('ActiveUserCount', 'ActiveUserCount');
        $this->intField('Type', 'Type');
        $this->dateField('CreateTime', 'CreateTime');
        $this->intField('ShareReadCount', 'ShareReadCount');
        $this->intField('SearchCount', 'SearchCount');
        $this->intField('SearchUserCount', 'SearchUserCount');
        $this->intField('ClickReadCount', 'ClickReadCount');
        $this->intField('RegUserCount', 'RegUserCount');
        $this->intField('TryUserCount', 'TryUserCount');
        $this->intField('TryCount', 'TryCount');
        
        $this->setTableName('WeixinSummary');
    }
}

 